file chooser button: Add a style class
authorMatthias Clasen <mclasen@redhat.com>
Mon, 2 Nov 2015 17:27:36 +0000 (12:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 2 Nov 2015 17:27:36 +0000 (12:27 -0500)
Unfortunately, GtkFileChooserButton is different from the other
pickers in that it is not a button, but rather has a button.

We ignore the difference for styling purposes, and just add
a .file style class to the button.

gtk/ui/gtkfilechooserbutton.ui

index 0bba0903299334fabccaf4073262c89adcbf914b..b546af244e9d101ee4ef5566c9d3528d9de4ef0f 100644 (file)
@@ -8,6 +8,9 @@
         <property name="can_focus">1</property>
         <property name="receives_default">1</property>
         <signal name="clicked" handler="button_clicked_cb" swapped="no"/>
+        <style>
+          <class name="file"/>
+        </style>
         <child>
           <object class="GtkBox" id="box2">
             <property name="visible">1</property>